package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author shixc
 * @since 2019-02-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("MMRT_T")
public class MmrtT extends PO<MmrtT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "MMRTENT", type = IdType.INPUT)
    private String MMRTENT;

    private String MMRTDOCNO;

    private BigDecimal MMRTSEQ;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRTDOCDATE;

    private String MMRT001;

    private String MMRT002;
    private String MMRT003;

    private String MMRT004;
    private String MMRT005;
    private BigDecimal MMRT006;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRT007;
    private String MMRT008;
    private String MMRT009;
    private String MMRT010;
    private String MMRT011;
    private String MMRT012;
    private String MMRT013;
    private String MMRT014;

    private String MMRT050;
    private String MMRT051;
    private String MMRT052;
    private String MMRT053;
    private String MMRT054;

    private String MMRTACTI;

    @TableField(fill = FieldFill.INSERT)
    private String MMRTUSER;

    @TableField(fill = FieldFill.INSERT)
    private String MMRTGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String MMRTMODU;

    @TableField(fill = FieldFill.INSERT)
    private String MMRTTIME;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRTDATE;

    @TableField(fill = FieldFill.INSERT)
    private String MMRTORIG;

    @TableField(fill = FieldFill.INSERT)
    private String MMRTORIU;


    @Override
    protected Serializable pkVal() {
        return this.MMRTENT;
    }

}
